package com.muse.designpatterns.strategy.duck;

import com.muse.designpatterns.strategy.fly.FlyNoWay;
import com.muse.designpatterns.strategy.fly.FlyWithWings;
import com.muse.designpatterns.strategy.quack.Squeak;

public class RubberDuck extends Duck{
    public RubberDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior=new Squeak();
    }

    public void display() {
        System.out.println("橡皮鸭外貌特征");
    }
}
